<template>
  <view>
    <view class="content-box">
      <view
        v-if="isprivary == 2"
        class="d-c-c d-c f36 mb40"
        v-html="privacy"
      ></view>
      <view
        v-if="isprivary == 1"
        class="d-c-c d-c f36 mb40"
        v-html="service"
      ></view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      privacy: "",
      service: "",
      isprivary: "",
    };
  },
  onLoad(e) {
    this.isprivary = e.url;
    console.log(this.isprivary, "e");
    this.getData();
  },
  methods: {
    getData() {
      let self = this;
      self._get("index/policy", {}, function (res) {
        self.service = res.data.service;
        self.privacy = res.data.privacy;
      });
    },
  },
};
</script>

<style lang="scss">
page {
  background-color: white;
}
</style>
